<?php
$ssFilter = $arrParam['ssFilter'];
		$lang = $ssFilter['lang'];
		if($lang == ''){
			$lang = 'vi';
		}else{
			$lang = $ssFilter['lang'];
		}
		
echo $this->blkBreadcumb(array(
			'Trang chủ'=> array(
					'module'	=>'default',
					'controller'=>'index',
					'action'	=>'index',
					'router'	=> 'home',
					'params'	=> array(
									'lang'=>$lang
								)
				),
			'Đăng Ký Thành Viên'=> array(
					'module'	=>'default',
					'controller'=>'public',
					'action'	=>'register',
					'router'	=>'register',
					'params'	=> array(
									'lang'=>$lang
								)
				),
			
		));
?>
<div class="clear"></div>
<!-- CONTENT (start) -->
<?php
	if (count ( $this->messageError ) > 0) $errors = $this->messageError;	$user_name			= $this->formText('user_name',$this->Item['user_name'],null);
	$email				= $this->formText('email',$this->Item['email'],null);	$firstname			= $this->formText('firstname',$this->Item['firstname'],null);	$lastname			= $this->formText('lastname',$this->Item['lastname'],null);	$phone				= $this->formText('phone',$this->Item['phone'],null);	$address			= $this->formText('address',$this->Item['address'],null);	$password			= $this->formPassword('password',null,null);	$confirm_password	= $this->formPassword('confirm_password',null,null);	$captcha 	= 	$this->captcha;	$txtCaptcha = 	$this->formText('captcha','');	$txtID 		= 	$this->formHidden('captchaID',$this->captcha_id);	$urlCaptch		 = $this->baseUrl('default/index/captcha-image');	$inputCaptcha	= $this->formText('captcha',null,array("class"=>"code"));
	
	$lostPassUrl 		= array(
                     	'module'=>'default',
                     	'controller'=>'public',
                     	'action'=>'lost-pass',
                     	'lang'	=> 'vi'
                     	);
    $lostPassUrl 		= $this->url($lostPassUrl, 'lostpass');
?><script>	function getData(data){		$('.border-img').html(data);		return false;	}	function refreshCaptcha(){		var captchaID = $("#captchaID").val();		$.get('<?php echo $urlCaptch . '/captchaID/';?>'+captchaID,getData);	}	$(document).ready(function(){		$('#refresh').click(function(e){			e.preventDefault();			refreshCaptcha();		});	});</script>
<div class="detail">
                         <div class="box width-100">
                             <div class="cnt-box">
                                   <!--------- Noi dung--------->
                                    <div class="box-cnt width-100">
                                        <!--------- Tieu de bai viet--------->
                                        <div class="title width-100">
                                            <h2><a href="#" title="5 nhom thuc pham">Tạo tài khoản mới </a></h2>
                                        </div>
                                        <!--------- Tieu de bai viet(end)--------->

                                        <div class="clear"></div>
                                        <div class="line-white"></div>
                                        <!--------- Form đăng ký--------->

                                        <div class="login_student width-40 float-left">
      			                            <form name="formRegister" method="post" action="" enctype="multipart/form-data">
      				                            <div class="note color-orange2">Vui lòng điền đầy đủ thông tin dưới đây.</div><br><br>
                                  				<div class="lev">
                                            	    <p class="sub-lev"><span>Tên đăng nhập</span> </p>
                                            	    <?php echo $user_name?>
                                            	    <?php if(!empty($errors['user_name'])):echo '<p class="msg_error">'.$errors['user_name'].'</p>';endif;?>
                                                </div>
                                                <div class="lev">
                                                	<p class="sub-lev"><span>Mật khẩu</span> </p>
                                                	<?php echo $password?>
                                            	    <?php if(!empty($errors['password'])):echo '<p class="msg_error">'.$errors['password'].'</p>';endif;?>
                                                </div>
                                                <div class="lev">
                                                	<p class="sub-lev"><span>Nhập lại mật khẩu </span></p>
                                                	<?php echo $confirm_password?>
                                            	    <?php if(!empty($errors['confirm_password'])):echo '<p class="msg_error">'.$errors['confirm_password'].'</p>';endif;?>
                                                </div>
                                                <div class="lev">
                                                	<p class="sub-lev"><span>Họ </span></p>
                                                	<?php echo $firstname?>
                                            	    <?php if(!empty($errors['firstname'])):echo '<p class="msg_error">'.$errors['firstname'].'</p>';endif;?>
                                                </div>
                                                <div class="lev">
                                                	<p class="sub-lev"><span>Tên </span></p>
                                                	<?php echo $lastname?>
                                            	    <?php if(!empty($errors['lastname'])):echo '<p class="msg_error">'.$errors['lastname'].'</p>';endif;?>
                                                </div>
                                                <div class="lev">
                                                	<p class="sub-lev"><span>Email </span></p>
                                                	<?php echo $email?>
                                            	    <?php if(!empty($errors['email'])):echo '<p class="msg_error">'.$errors['email'].'</p>';endif;?>
                                                </div>

                                                <div class="lev">
                                                	<p class="sub-lev"><span>Điện thoại</span></p>
                                                	<?php echo $phone?>
                                            	    <?php if(!empty($errors['phone'])):echo '<p class="msg_error">'.$errors['phone'].'</p>';endif;?>
                                                </div>
                                                
                                                <div class="lev">
                                                    <p class="sub-lev"><span class="sub-lev">Mã xác nhận: </span> </p>
                                                    <div>
                                      	                <?php echo $inputCaptcha?>
                                      	                <?php if(!empty($errors['captcha'])):echo '<p class="msg_error">'.$errors['captcha'].'</p>';endif;?>
                                      				</div>
                                                </div>
                                                <div class="lev">
                    				             	<div>
                    									<div class="border-img"><?php echo $txtID.$captcha;?>
                                                            </div>
                    					             	<span id="refresh" class="refresh"></span>
                    				             	  </div>
                    				             </div>
                    				             
                                				<div class="lev-1 mar-top-20">
                                					<input class="submit" type="submit" name="submit" value="Tạo tài khoản mới">
                                                    <a href="<?php echo $lostPassUrl?>" title="Quên mật khẩu">Quên mật khẩu ?</a>
                                				</div>
      			                            </form>
      		                            </div>

                                        <!--------- Form đăng ký--------->

                                  </div>
                                   <!---------Noi dung(end)-------->
                             </div>
                         </div>
                    </div>

				